package cn.fw.community.client.model.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import io.gitee.chearnee.fw.common.annotation.IBaseEnumJson;
import io.gitee.chearnee.fw.common.model.IBaseEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum IdentityTypeEnum implements IBaseEnum<Integer> {
    /*人员身份类型*/
    NOT_SUPPORT(0, "NOT_SUPPORT", "无效类型"),
    WORKER(1, "WORKER", "工人"),
    WORKER_LEADER(2, "WORKER_LEADER", "班组长"),
    PRACTITIONER(3, "PRACTITIONER", "从业人员"),
    REGULATOR(4, "REGULATOR", "监管人员"),
    OPERATOR(5, "OPERATOR", "运营人员"),
    ;
    @EnumValue
    private final Integer value;
    @IBaseEnumJson
    private final String code;
    private final String desc;
}
